package com.aspose.cells.a.d;

public class zci {
   private long a;
   private int b;
   private short c;
   private short d;
   private short e;
   private short f;
   private int g;
   private long h;
   private int i;

   public void a(com.aspose.cells.b.a.d.za var1) throws Exception {
      this.a = var1.r();
      this.b = var1.p();
      this.c = var1.n();
      this.d = var1.n();
      this.e = var1.n();
      this.f = var1.n();
      this.g = var1.p();
      this.h = var1.r();
      this.i = var1.p();
      this.d();
   }

   private void d() throws Exception {
      byte var1 = 0;
      int var2 = var1 ^ (int)(this.a & 4294967295L & 65535L);
      var2 ^= (int)((this.a & 4294967295L & 4294901760L) >> 16);
      var2 ^= this.b;
      var2 ^= this.c;
      var2 ^= this.d;
      var2 ^= this.e;
      var2 ^= this.f;
      var2 ^= this.g;
      var2 ^= (int)(this.h & 4294967295L & 65535L);
      var2 ^= (int)((this.h & 4294967295L & 4294901760L) >> 16);
      if ((var2 & '\uffff' & '\uffff') != (this.i & '\uffff')) {
         throw new Exception("Metafile checksum is invalid.");
      }
   }

   public boolean a() {
      return this.e - this.c > 0 && this.f - this.d > 0;
   }

   public com.aspose.cells.b.a.b.zp b() {
      return new com.aspose.cells.b.a.b.zp(0, 0, this.e - this.c, this.f - this.d);
   }

   public int c() {
      return this.g;
   }
}
